package com.lxy.controller;

import com.lxy.dao.RegisterationDao;
import com.lxy.entity.RegisterOrder;

import java.sql.SQLException;
import java.util.List;

public class RegisterOrderController {
    private static final RegisterationDao registerationManagementDao = new RegisterationDao();

    public static List<RegisterOrder> query() {
        return registerationManagementDao.query();
    }

    public static RegisterOrder queryRegisterOrder(Integer roid) {
        return registerationManagementDao.registerQuery(roid);
    }

    public static Integer updateRegisterOrder(Integer roid, String property, String propertyValue) throws SQLException {
        return registerationManagementDao.updateRegisterorder(roid, property, propertyValue);
    }

    public static Integer deleteRegisterOrder(Integer roid) {
        return registerationManagementDao.deleteRegisterorder(roid);
    }

    public static Integer insertRegisterOrder(RegisterOrder registerOrder) {
        return registerationManagementDao.insertRegisterorder(registerOrder);
    }
}